﻿<controls:ChildWindow 
	x:Class="TestGUI.ChildWindow1"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
	xmlns:me="clr-namespace:TestGUI"
	xmlns:MVVMSL="clr-namespace:Riba.MVVMSL;assembly=RibaMVVMSL"
	Width="200" Height="150" 
	Title="ChildWindow1"
>	
	<controls:ChildWindow.DataContext>
		<me:ChildWindow1ViewModel />
	</controls:ChildWindow.DataContext>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<MVVMSL:ViewEventHandlerControl />
		
		<StackPanel>
			<TextBox Text="{Binding DisplayText, Mode=TwoWay}" />
		</StackPanel>

		<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
			<Button
				x:Name="CancelButton"
				Content="Cancel"
				Click="CancelButton_Click"
				Width="75"
				Height="23"
			/>
			<Button
				x:Name="OkButton"
				Content="OK"
				Command="{Binding CommandOk, Mode=OneWay}"
				Width="75"
				Height="23"
			/>
		</StackPanel>
	</Grid>
</controls:ChildWindow>